package com.pdsu.graduation_design.listener;

import android.content.Context;
import android.widget.Toast;

import com.pdsu.graduation_design.domain.Commodity;

import java.util.List;

import q.rorbin.verticaltablayout.VerticalTabLayout;
import q.rorbin.verticaltablayout.widget.TabView;

public class MainMenuBarOnItemClickListener implements VerticalTabLayout.OnTabSelectedListener {


    //点击后获得该类型商品
    private List<Commodity> commodities;
    private Context context;

    public MainMenuBarOnItemClickListener(Context context) {
        this.context = context;
    }

    @Override
    public void onTabSelected(TabView tab, int position) {

        Toast.makeText(context, "tab"+position, Toast.LENGTH_SHORT).show();

        //
        /**
         * 更新main_gridview
         */
    }

    @Override
    public void onTabReselected(TabView tab, int position) {

    }
}
